const mongoose = require('mongoose')
const reviewRecordsSchema = mongoose.Schema({
    "rbId": Number,           //报销单Id
    "reviewFraud": {
        type: Number,
        default: 2
    },//审查结果 0-否 1-是 2-未审查
    "onlineReview": {
        type: Number,
        default: 0
    },//线上审查 0-否 1-是
    "offlineReview": {
        type: Number,
        default: 0
    },//线下审查 0-否 1-是
    "remark": String,//备注
    "uploadTime": {
        type: Date,
        default: Date.now
    },//上传时间
    "reviewUserId": Number,//审查人Id
    "reviewUserName": String,//审查人姓名
})

module.exports = mongoose.model("reviewRecords", reviewRecordsSchema, "reviewRecords")//第三个参数是集合名称